<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>

<body>
    <nav th:replace="dashboard/nav :: nav"></nav>

	<!-- Sidebar Starts -->
	<div class="pmd-sidebar-overlay"></div>
    <aside th:replace="dashboard/menus :: menus"></aside>

	<!--content area start-->
	<div id="content" class="pmd-content content-area dashboard">
		<iframe src="home" style="width:100%;" name="content" frameborder="0" scrolling="no" id="external-frame" onload="setIframeHeight(this)"></iframe>
	</div>
	<!--end content area-->

	<!-- Scripts Starts -->
	<script src="assets/js/jquery-1.12.2.min.js"></script>
	<script src="assets/js/bootstrap.min.js"></script>
	<script src="assets/js/propeller.min.js"></script>
	<script type="text/javascript">
		//document.domain = "caibaojian.com";
		function setIframeHeight(iframe) {
			if (iframe) {
				var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
				if (iframeWin.document.body) {
					iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
				}
			}
		};

		window.onload = function() {
			setIframeHeight(document.getElementById('external-frame'));
		};
	</script>
	
	<!--end content area-->
    <div th:replace="dashboard/footer :: footer"></div>

</body>
</html>
